/*
 * @Author: Ygm
 * @Date: 2022-09-18 21:43:24
 * @LastEditors: Ygm
 * @LastEditTime: 2023-02-07 10:33:54
 * @Description: 会员相关接口
 */
import http from "@/http/request.js"

// 会员头部信息
const vipUserCardInfo = (data = {}) => {
	return http.post('/vipcard/userCardInfo', data, {
		isloading: false
	})
}

// vipcard列表
const vipcardList = (data = {}) => {
	return http.post('/vipcard/list', data, {
		isloading: true
	})
}

// vipcard提交订单
const vipGenerateOrder = (data = {}) => {
	return http.post('/order/generateOrder', data, {
		isloading: true
	})
}
// vipcard临时支付
const viptempPay = (data = {}) => {
	return http.post('/order/tempPay', data, {
		isloading: true
	})
}


// 所有会员卡列表
const allVipCardList = (data = {}) => {
	return http.post('/vipcard/myCardlist', data, {
		isloading: false
	})
}

// 新的所有会员卡列表
const myCardlistNew = (data = {}) => {
	return http.post('/vipcard/myCardlistNew', data, {
		isloading: false
	})
}

// 支付接口
const prePay = (data = {}) => {
	return http.post('/order/prePay', data, {
		isloading: false
	})
}




export default {
	vipUserCardInfo,
	vipcardList,
	vipGenerateOrder,
	viptempPay,
	allVipCardList,
	myCardlistNew,
	prePay
}
